// dataOptions
export default {
    namespaced: true,
    actions: {

    },
    mutations: {
        setCurrentUser(user) {
            this.currentUser = user;
            if (user.avatar === null || user.avatar === "") {
                this.currentUser.avatar = "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png";
            }
        }
    },
    state: {
        // 当前用户信息
        currentUser: {
            id: 1,
            name: "梁汉强",
            avatar: "http://localhost:8080/api/file/getImgById?id=2"
        }, //当前用户信息
    },
    getters: {}
}